package nix.ssm.controller;

import java.util.List;

import nix.ssm.pojo.User;
import nix.ssm.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {

	@Autowired
	private UserService userService;
	
	@RequestMapping("user/list")
	public String userList(Model model) {
		List<User> list = userService.findList(null);
		model.addAttribute("list", list);
		return "user/list";
	}
}
